package com.nb.fly.model;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.GeoPointField;

/**
 * ${NMAE}
 *
 * @author Gwg
 * @date 2020/6/28
 **/
@Data
@Document(indexName = "shop",type = "shop")
public class Shop {

    @Id
    private Long Id;

    private String name;

    private String img;

    private String  address;

    @GeoPointField
    private Position position;
}
